﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FlickrMe.Config
{
    abstract class ConfigManager
    {
        public const int REGISTRY_TYPE = 1;

        public abstract FlickrConfig getConfig();
        public abstract void saveConfig(FlickrConfig config);

        public static ConfigManager getInstance(int type) 
        {
            switch (type)
            {
                case REGISTRY_TYPE:
                    {
                        return new RegistryBasedConfigManager();
                    }
                default:
                    {
                        throw new InvalidConfigTypeException();
                    }
            }
        }

        
    }
}
